x86: Save mtrr support flag in global data
authorBin Meng <[email protected]>
Thu, 22 Jan 2015 03:29:40 +0000 (11:29 +0800)
committerSimon Glass <[email protected]>
Sat, 24 Jan 2015 00:24:55 +0000 (17:24 -0700)
commit49491669065c1c718d8dc0b0ebc151b3d010c17b
treea9bfa987044f9d6deb606f787855a9f77ad5e871
parent566d1754d3a84819d9e2829421898d115ef2c116
x86: Save mtrr support flag in global data

CPUID (EAX 01H) returns MTRR support flag in EDX bit 12. Probe this
flag in x86_cpu_init_f() and save it in global data.

Signed-off-by: Bin Meng <[email protected]>
Acked-by: Simon Glass <[email protected]>
arch/x86/cpu/cpu.c
arch/x86/include/asm/global_data.h